package com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.presenter

import com.lyc.wanandroid_kotlin.base.BasePresenter
import com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.contract.RankContract
import com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.model.RankModel
import ss

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.rank.mvp.presenter
 * Description:
 */
class RankPresenter : BasePresenter<RankContract.Model, RankContract.View>(),
    RankContract.Presenter {

    override fun createModel(): RankContract.Model? = RankModel()

    override fun getRankList(page: Int) {
        mModel?.getRankList(page)?.ss(mModel, mView) {
            mView?.showRankList(it.data)
        }
    }
}